package top.leix.springdemo.services;

import top.leix.springdemo.Res;
import top.leix.springdemo.pojo.ApplyRepairTeacher;
import com.baomidou.mybatisplus.extension.service.IService;

/**
* @author 16435
* @description 针对表【apply_repair_teacher(报修表)】的数据库操作Service
* @createDate 2024-04-21 22:23:42
*/
public interface ApplyRepairTeacherService extends IService<ApplyRepairTeacher> {
    Res addRepair(ApplyRepairTeacher applyRepairTeacher);
    Res updateRepairApplication(ApplyRepairTeacher applyRepairTeacher);

    Res queryRepairApplication(String userAccount);
    public Res queryRepairPending(String userAccount);
    public Res queryRepairRepairing(String userAccount);
    Res queryRepairFinished(String userAccount);
    Res queryRepairByName(String userName);

    Res updateRepairStatus(Integer applyID,String status);

    Res addRepairNote(Integer applyID, String note);
}
